def random_10():
    for i in range(3):
        yield i


def random_100():
    for i in range(100, 110):
        yield i


# 先耗尽第一个gen，再耗尽第二个gen
def gen():
    yield from random_10()
    print("next gen start")
    yield from random_100()


def main() -> None:
    g = gen()
    print(next(g))
    print(next(g))
    print(next(g))
    print(next(g))
    print(next(g))


if __name__ == "__main__":
    main()
